Branching Width when Solving Random Jigsaw Puzzles with a Planted Solution
نویسنده
چکیده
John Tsotsos asked his AI students to work on having an AI solve a jigsaw puzzle, though it is NP-complete. Instead of looking at a real puzzle, this paper considers a randomly generated puzzle with a planted solution whose probability of piece connection is set so that each piece connects to Θ( √ ǫn) pieces but with 1 − Θ( ǫ √ n ) probability the planted solution is unique. As expected, the recursive backtracking algorithm, which attempts to put together just the edge pieces into a frame, branches exponentially as does building a triangle from a corner of the puzzle. Building a block in the middle does better, but still branches super (quasi) polynomially. In contrast, expanding a rectangle from a corner takes only linear expected time (or quadratic depending on the model). In fact, the expected number of backtracking branches alive at any given time is 1+Θ(ǫ). It is also interesting that for the different orders of completing the puzzle, there are very different “reasons” for the exponential blowup. We coded the algorithm and it ran just as described.
منابع مشابه
Jigsaw Puzzles As Cognitive Enrichment (PACE) - the effect of solving jigsaw puzzles on global visuospatial cognition in adults 50 years of age and older: study protocol for a randomized controlled trial
BACKGROUND Neurocognitive disorders are an important societal challenge and the need for early prevention is increasingly recognized. Meta-analyses show beneficial effects of cognitive activities on cognition. However, high financial costs, low intrinsic motivation, logistic challenges of group-based activities, or the need to operate digital devices prevent their widespread application in clin...
متن کاملAn Improved Heuristic-based Approach for Solving Square Jigsaw Puzzles
An algorithm for assembling square jigsaw puzzles is presented. We commence by introducing criteria that govern the selection of proper jigsaw puzzle solving method for a given application. Our algorithm uses the gray level profiles of border pixels for local matching of the puzzle pieces. Unlike the classical best-first search, the algorithm simultaneously locates the neighbors of a puzzle pie...
متن کاملA Global Approach for Solving Edge-Matching Puzzles
We consider apictorial edge-matching puzzles, in which the goal is to arrange a collection of puzzle pieces with colored edges so that the colors match along the edges of adjacent pieces. We devise an algebraic representation for this problem and provide conditions under which it exactly characterizes a puzzle. Using the new representation, we recast the combinatorial, discrete problem of solvi...
متن کاملNo Easy Puzzles: A Hardness Result for Jigsaw Puzzles
We show that solving jigsaw puzzles requires Θ(n ) edge matching comparisons, making them as hard as their trivial upper bound. This result generalises to puzzles of all shapes, and is applicable to both pictorial and apictorial puzzles.
متن کاملA Jigsaw Puzzle Solving Guide on Mobile Devices
In this report we present our work on designing and implementing a mobile phone application that helps people solve jigsaw puzzles by locating the image of a single patch on the complete picture. Details of the algorithm and implementation are discussed and test results are presented. Keywords-component; Jigsaw Puzzle; Mobile Application; Template Matching; Image Segmentation; SURF; RANSAC
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2012